import Vue from 'vue';
import App from './App.vue';
import router from './router';
import Vant from 'vant';
import 'vant/lib/index.css';
import axios from 'axios';
import F2 from '@antv/f2/dist/f2-all.min.js';
import '@antv/f2/lib/interaction/';
import store from '@/store';
import '@/utils/filters';
// import VConsole from 'vconsole';

// const vConsole = new VConsole();
// vConsole.setOption({
//   maxLogNumber: 5000,
// });


Vue.config.productionTip = false;
Vue.prototype.$http = axios;
Vue.prototype.$F2 = F2;
Vue.use(Vant);

router.afterEach((to,from,next) => {
  window.scrollTo(0,0);
});

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
